


import request from "@/utils/request.js"

// 部门通知----我创建的
export const getICreatList = (data) => {
	return request({
		url: "/app/workflow/audit/pages/DEPART",
		method: "POST",
		data
	})
}
// 部门通知----我审批的
export const getIapproveList = (data) => {
	return request({
		url: "/app/workflow/task_info/pages/DEPART",
		method: "POST",
		data
	})
}
// 部门通知---我参加的
export const getNoticeList = (data) => {
	return request({
		url: "/app/workflow/notice_info/pages/DEPART",
		method: "POST",
		data
	})
}
// 部门通知---查询--基本信息
export const getauditInfo = (data) => {
	return request({
		url: "/app/workflow/audit/info/DEPART",
		method: "GET",
		data
	})
}
// 部门通知---新建保存---草稿
export const getSaveDrafat = (data) => {
	return request({
		url: "/app/workflow/audit/save/draft/DEPART",
		method: "POST",
		data
	})
}
// 部门通知---新建提交
export const handelauditSubmit = (data) => {
	return request({
		url: "/app/workflow/audit/save/complete/DEPART",
		method: "POST",
		data
	})
}
// 部门通知---我审批的--基本信息---保存
export const iapproveSave = (data) => {
	return request({
		url: "/app/workflow/task_info/save/draft/DEPART",
		method: "POST",
		data
	})
}
// 部门通知---我审批的--基本信息---提交
export const iapproveSubmit = (data) => {
	return request({
		url: "/app/workflow/task_info/save/complete/DEPART",
		method: "POST",
		data
	})
}
// 部门通知---我审批的--基本信息---提交
export const gettaskInfo = (data) => {
	return request({
		url: "/app/workflow/task_info/info/DEPART",
		method: "GET",
		data
	})
}
// 通知部门 --办理记录
export const gethandlingRecord = (busid) => {
	return request({
		url: "/app/workflow/audit_item/list/DEPART/"+busid,
		method: "POST",
	})
}
// 通知部门 --我参加的--基本信息查询
export const getNoticeInfo = (data) => {
	return request({
		url: "/app/workflow/notice_info/info/DEPART",
		method: "GET",
		data
	})
}
// 通知部门 --我参加的--基本信息查询
export const setReadStatus = (data) => {
	return request({
		url: "/app/workflow/notice_info/update/read_status",
		method: "POST",
		data
	})
}

// 通知部门 -- 我创建的 --撤回
export const creatReback = (data) => {
	return request({
		url: "/app/workflow/audit/reback",
		method: "POST",
		data
	})
}
// 修改阅读状态
export const  setReadstauts = (data) => {
  return request({
    url: "/app/workflow/notice_info/update/read_status",
    method: "POST",
    data,
  });
};
// 通知部门 附件列表
export const getfilelist = (busid) => {
  return request({
    url: "/app/workflow/business_attach/list/DEPART/"+busid,
    method: "POST"
  });
};